﻿/*
 * 文件名：logined.cs
 * 类名：XHCTMS.BLL.logined
 * 创建人：仇祖萍
 * 创建时间：2013-05-20
 * 备注：
 */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace XHCTMS.BLL
{
    /// <summary>
    /// 用户登录
    /// </summary>
    public class logined
    {
        /// <summary>
        /// 分页获取用户登录信息
        /// </summary>
        public DataTable Paging(int pageSize, int pageIndex)
        {
            return new DAL.logined().Paging(pageSize, pageIndex);
        }

        /// <summary>
        /// 查询所有用户登录信息
        /// </summary>
        public DataTable ViewInfo()
        {
            return new DAL.logined().View();
        }

        ///// <summary>
        ///// 按条件查询用户登录信息，分页显示结果
        ///// </summary>
        ///// <param name="pageIndex">页号</param>
        ///// <param name="query"></param>
        ///// <returns>返回DataTable类型 null/异常</returns>
        //public DataTable SelecteCourseId(int pageIndex, int query)
        //{
        //    return new DAL.logined().SelectByCondition(pageIndex, query);
        //}


        /// <summary>
        /// 多条件查询
        /// </summary>
        /// <param name="login"></param>
        /// <param name="user"></param>
        /// <returns></returns>
        public DataTable SelecteBy( MODEL.logined login)
        {
            return new DAL.logined().ViewBy(login);
        }

        /// <summary>
        /// 查询结果集的数目
        /// </summary>
        /// <param name="query">查询条件</param>
        /// <returns>返回DataTable类型 null/异常</returns>
        public string Amount(string[] parasValue)
        {
            return new DAL.logined().GetAmount(parasValue);
        }


        public DataTable Search(string[] parasValue, int page = 1)
        {
            return new DAL.logined().Search(parasValue, page);
        }

    }
}
